package JDBC_Test.Fruit.Model;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;

//import java.util.Date;
/**
 * 
 * @author dell
 *销售记录实体类
 */
public class SaleRecordModel {
	
	
	private String fruitName;//水果名
	private int weight;//购买数量
	private BigDecimal inprice;//成本价
	private BigDecimal outPrice;//售价
	private BigDecimal discount;//折扣率
	private String sex;//顾客性别
	private Timestamp date;//记录时间
	public String getFruitName() {
		return fruitName;
	}
	public void setFruitName(String fruitName) {
		this.fruitName = fruitName;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public BigDecimal getInprice() {
		return inprice;
	}
	public void setInprice(BigDecimal inprice) {
		this.inprice = inprice;
	}
	public BigDecimal getOutPrice() {
		return outPrice;
	}
	public void setOutPrice(BigDecimal outPrice) {
		this.outPrice = outPrice;
	}
	public BigDecimal getDiscount() {
		return discount;
	}
	public void setDiscount(BigDecimal discount) {
		this.discount = discount;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public Timestamp getDate() {
		return date;
	}
	public void setDate(Timestamp date) {
		this.date = date;
	}
	public SaleRecordModel(String fruitName, int weight, BigDecimal inprice, BigDecimal outPrice, BigDecimal discount,
			String sex, Timestamp date) {
		super();
		this.fruitName = fruitName;
		this.weight = weight;
		this.inprice = inprice;
		this.outPrice = outPrice;
		this.discount = discount;
		this.sex = sex;
		this.date = date;
	}
	@Override
	public String toString() {
		return "SaleRecordModel [水果=" + fruitName + ", 购买数量=" + weight + ", 进价=" + inprice + ", 售价="
				+ outPrice + ", 折扣率=" + discount + ", 顾客性别=" + sex + ", 时间=" + date + "]";
	}
	



	
	

}
